Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove forced simulateContract on write #92

Merged
merged 5 commits into from
Dec 9, 2024

Conversation

kinrezC
Copy link
Contributor

@kinrezC kinrezC commented Dec 9, 2024

Closes #91

Copy link

changeset-bot bot commented Dec 9, 2024

🦋 Changeset detected

Latest commit: 3d82cfc

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@delvtech/drift-viem Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@kinrezC kinrezC force-pushed the fix/viem-write-simulate branch from 00baa03 to 7eb2d73 Compare December 9, 2024 20:29
Copy link
Member

@ryangoree ryangoree left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is great! Just one nit.

this.waitForTransaction({ hash }).then(params.onMined);
return hash;
});
await this.waitForTransaction({ hash }).then(params.onMined);
Copy link
Member

@ryangoree ryangoree Dec 9, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we remove the await here to ensure the write function resolves with the tx hash without waiting to be mined.

@kinrezC kinrezC requested a review from ryangoree December 9, 2024 21:04
Copy link
Member

@ryangoree ryangoree left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for the contribution! I'll follow up shortly with a release 🚀

@ryangoree ryangoree merged commit 8f0d309 into delvtech:main Dec 9, 2024
0 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Remove forced simulateContract in ViemReadWriteAdapter
2 participants